package com.example.app.listener;

import com.example.app.event.MyEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * @author wangzhuangzhuang
 * @DESC:
 * @date 2022-02-10 09:42
 */
@Slf4j
@Component
public class MyListener02 {
	@EventListener
	public void listener(MyEvent myEvent){
		log.info(String.format("%s 监听到事件源： %s.", MyListener02.class.getName(), myEvent));
	}
}